﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Gui/masterPage.Master" AutoEventWireup="true" CodeBehind="ChangeUser.aspx.cs" Inherits="OnlineStore.Gui.ChangeUser" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentLogin" runat="server">
<asp:HyperLink ID="HL_tab_login"  NavigateUrl="/gui/Login.aspx" runat="server" ForeColor="Red">(Đăng nhập) </asp:HyperLink> |
    <asp:HyperLink ID="HL_tab_Logout"  Visible="false" runat="server" NavigateUrl="/gui/Login.aspx?logout=true">Đăng Xuất | </asp:HyperLink>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
<h1>thông tin tài khoản</h1>
    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentCenter" runat="server">
<p> Xin chào <b><%=((OnlineStore.Dal.tbCustomer) Session["user"]).Username %></b></p>
    
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentTop" runat="server">
    <h1>
        <asp:Label ID="lb_Title" runat="server">Thay đổi Thông tin tài khoản</asp:Label>
    </h1>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="MainContent" runat="server">
    <% if (Request.QueryString.Get("id") != "1")
       {
    %>
    <div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; margin-bottom: 10px;">
        <table>
          <tbody>
          <tr>
            <td width="150"><span class="required">*</span> Họ Và Tên : </td>
            <td>
                <asp:TextBox ID="tb_FullName" runat="server"></asp:TextBox>
            </td>
            <td></td>
          </tr>
          <tr>
            <td><span class="required">*</span> Điện thoại : </td>
            <td>
                <asp:TextBox ID="tb_Tel" runat="server"></asp:TextBox>
            </td>
            <td></td>
          </tr>
          <tr>
            <td><span class="required">*</span> Địa chỉ : </td>
            <td colspan="2">
                <asp:TextBox ID="tb_Address" runat="server" Rows="3" TextMode="MultiLine" 
                    Width="240px"></asp:TextBox>
            </td>
            
          </tr>
        </tbody></table>
    </div>
    <%}
       else
       { 
    %>
    <div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; margin-bottom: 10px;">
        <table>
          <tbody>
          <tr>
            <td width="150"><span class="required">*</span> Mật khẩu hiện tại : </td>
            <td>
                <asp:TextBox ID="tb_PassWordNow" runat="server" TextMode="Password"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="lb_warningNow" runat="server" CssClass="warning" Visible="false"> Mật khẩu không đúng</asp:Label>
             </td>
          </tr>
          <tr>
                <td width="150"><span class="required">*</span> Mật khẩu mới</td>
                <td>
                    <asp:TextBox ID="tb_PassWordNew" runat="server" TextMode="Password"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lb_WarningNew" runat="server" CssClass="warning" Visible="false"> Vui lòng nhập lại mật khẩu mới</asp:Label>
                </td>
          </tr>
          <tr>
            <td><span class="required">*</span> Nhập lại mật khẩu </td>
            <td>
                <asp:TextBox ID="tb_PassWordAgain" runat="server" TextMode="Password"></asp:TextBox>
            </td>
            <td></td>
          </tr>
        </tbody></table>
    </div>
    <%}%>
    <div class="warning">
        <asp:Label ID="lb_warning" runat="server" Visible="false">Vui lòng điền đủ thông tin</asp:Label>
    </div>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ContentButtom" runat="server">
    <h1>Hoàn tất Thay đổi</h1>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Contentlist" runat="server">
    <div class="buttons">
        <table>
          <tbody><tr>
            <td>
                <asp:HyperLink ID="bt_Cancel" NavigateUrl="/Gui/Account.aspx" CssClass="button1" runat="server"><span>Hủy</span></asp:HyperLink>
             </td>
            <td align="right">
                <asp:LinkButton ID="bt_Submit" CssClass="button1" runat="server" Width="75px" 
                    onclick="Onsubmit" Height="27px"><span>Hoàn tất</span></asp:LinkButton>
             </td>
          </tr>
        </tbody></table>
      </div>
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="ContentCartRight" runat="server">
        <asp:GridView ID="ListCartRight" runat="server" AutoGenerateColumns="False"  GridLines="None">
            <Columns>
                <asp:BoundField DataField="NumberOrder" SortExpression="NumberOrder" 
                    DataFormatString="{0} x " >
                
                <ControlStyle Width="10px" />
                </asp:BoundField>
                
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataTextField="Product_Name" 
                    DataNavigateUrlFormatString="/gui/ProductDetail.aspx?id={0}" />
            </Columns>
        </asp:GridView>
    <br>
    <table cellpadding="0" cellspacing="0" align="right" style="display:inline-block;">
     <tbody>
        <tr>
            <td align="right"><span class="cart_module_total"><b>Tiền hàng:</b></span></td>
            <td align="right">
                <asp:Label ID="lb_Sum_product" runat="server" CssClass="cart_module_total" >0 VNĐ</asp:Label>
             </td>
        </tr>
        <tr>
            <td align="right"><span class="cart_module_total"><b>Tổng cộng:</b></span></td>
            <td align="right"><span class="cart_module_total">
                <asp:Label ID="lb_Sum" runat="server" CssClass="cart_module_total">0 VNĐ</asp:Label></span></td>
        </tr>
     </tbody></table>
</asp:Content>